package net.wangds.i18n;


import net.wangds.spring.utils.SpringUtils;
import junit.framework.TestCase;
import net.wangds.i18n.config.MessageResourceConfig;
import net.wangds.i18n.utils.I18nUtils;
import net.wangds.log.helper.LogHelper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
// import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
// import org.springframework.test.context.junit4.SpringRunner;
/*
@RunWith(SpringRunner.class)
@SpringBootTest(classes={CommonErrorTestCase.class, MessageResourceConfig.class})
@Configuration()
@ComponentScan({"net.wangds.i18n", "com.mgcc"})
@PropertySource("classpath:test1.properties")
 */
public class CommonErrorTestCase {

    /*
    @Autowired
    SpringUtils su;

    @Value("${test1}")
    String mmTest1;
    */

    /*
    @Test
    public void test(){

        LogHelper.info("The Test is beginning.");
        LogHelper.info("testing spring boot config.");
        TestCase.assertEquals(0,0);

        I18nUtils.addMessagePropertiesFile("test1");

        String msg_test1= SpringUtils.getMessage("test1", "");
        LogHelper.info("test1="+msg_test1);
        LogHelper.info("member test1="+mmTest1);

        String msg_test2= SpringUtils.getMessage("test2", "");
        LogHelper.info("test2="+msg_test2);
        I18nUtils.addMessagePropertiesFile("test2");
        msg_test2= SpringUtils.getMessage("test2", "");
        LogHelper.info("test2="+msg_test2);

        LogHelper.info("The test is finish.");


    }
    */




}
